Set value in object by path and flatten again with objects and arrays

visit shbcf.ru